# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: Sergej Pupykin <pupykin.s+arch@gmail.com>

pkgname=perl-array-compare
pkgver=4.0.0
pkgrel=1
pkgdesc="Class to compare two arrays"
arch=(any)
url="https://search.cpan.org/dist/Array-Compare"
license=('GPL' 'PerlArtistic')
depends=('perl>=5.10.0')
options=('!emptydirs')
source=(https://cpan.metacpan.org/authors/id/D/DA/DAVECROSS/Array-Compare-$pkgver.tar.gz)
sha512sums=('99d5e4e4674aa8408545a87b27fd3d437db44a5306f0132c1d5ea6c8cccfe14a5692d274b974f3d7b9062effb171d49892faaaa2eefd1df2a2a1dc0d2f8d7868')

build() {
  cd  "$srcdir"/Array-Compare-$pkgver
  PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
  make
}

package() {
  cd  "$srcdir"/Array-Compare-$pkgver
  make install DESTDIR="$pkgdir"
  find "$pkgdir" -name '.packlist' -delete
  find "$pkgdir" -name '*.pod' -delete
}
